package com.ruoyi.popAndHou.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 人房关联对象 pop_and_hou
 *
 * @author wang
 * @date 2022-04-20
 */
public class PopAndHou extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 人员id */
    @Excel(name = "人员id")
    private Long populationId;

    /** 房屋id */
    @Excel(name = "房屋id")
    private Long houseId;

    /**
     * 人员姓名
     * @param id
     */
    @Transient
    private String name;

    /**
     * 身份证号码
     */
    @Transient
    private String code;

    /**
     * 房屋地址
     * @param id
     */
    @Transient
    private String address;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setPopulationId(Long populationId)
    {
        this.populationId = populationId;
    }

    public Long getPopulationId()
    {
        return populationId;
    }
    public void setHouseId(Long houseId)
    {
        this.houseId = houseId;
    }

    public Long getHouseId()
    {
        return houseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("populationId", getPopulationId())
            .append("houseId", getHouseId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
